package homework1;

public class SoccerScore implements IScore {
	public int goals1;
	public int goals2;
	
	public boolean hasExtraTime;
	
	public SoccerScore( int goals1, int goals2,boolean hasExtraTime){
		this.goals1 = goals1;
		this.goals2 = goals2;
		this.hasExtraTime = hasExtraTime;
	}

	public String winner(String a, String b) {
		if( goals1 > goals2 )
			return a;
		return b;
	}

	public boolean isValid() {
		return true;
	}
}
